#ifndef _APP_DATA_H_
#define _APP_DATA_H_
#include "stdint.h"

#define APPDATA_FLASH_ADDR	((uint32_t)0x08060000)
#define WORD_LEN	9
typedef struct
{
	uint32_t agvservo_pos1;
	uint32_t agvservo_pos2;
	uint32_t door_open_pos;
	uint32_t rc_onoff_time;
	uint32_t rtk_onoff_time;
	uint32_t fixture_onoff_time1;
	uint32_t fixture_onoff_time2;
	uint32_t fixture_onoff_time3;
	uint32_t fixture_onoff_flag;
}T_FLASH_DATA;

typedef union
{
	uint32_t buf[WORD_LEN];
	T_FLASH_DATA tflash;
}U_FLASH_DATA;
extern U_FLASH_DATA U_Flashdata;

void SysFlashDataLoad(void);
void SysFlashDataStorage(void);
#endif
